package com.fuxi;

public class MyString_fuxi_dome09 {
    public static void main(String[] args) {
        String s1 = "Hello java";
        String s2 = "Hello java";
        if(s1.equals(s2)){
            System.out.println("它们相等");
            String r1 = s1.replace(" ", "").replace("java","World");
            System.out.println(r1);
        }else {
            System.out.println("不相等");
        }
    }
}
